home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr37
/
blt300.zip
/
BLT.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1995-04-02
|
4KB
|
243 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
;------------------------------------------------------------------------------
STRING007 = Date()
STRING003 = U_Name()
GetToken STRING008
If (Upper(STRING008) == "P") Goto LABEL005
Cls
FOpen 1, PPEPath() + "BLT" + STRING008 + ".DAT", 2, 0
Delay 1
STRING004 = 0
:LABEL001
If (Ferr(1)) Goto LABEL002
FGet 1, STRING005
STRING004 = STRING004 + 1
Goto LABEL001
:LABEL002
Cls
DispFile PPEPath() + "BLT" + STRING008 + ".MNU", 0
InputStr "(Q)uit, (1-" + String(STRING004) + "), Bulletin List Command", STRING001, 14, 2, "1234567890Qq", 64
If (((STRING001 >= 1) && (STRING001 <= STRING004)) && (Upper(STRING001) <> "Q")) Then
Cls
DispFile ReadLine(PPEPath() + "BLT" + STRING008 + ".DAT", STRING001), 2 + 1 + 4
Wait
STRING001 = "q"
Goto LABEL002
ElseIf (Upper(STRING001) == "Q") Then
End
Endif
End
:LABEL003
FClose 1
FClose 2
FClose 3
FClose 4
FClose 5
FClose 6
FClose 7
Return
STRING006 = -1
While ((STRING006 == -1)) STRING006 = Inkey()
Return
:LABEL004
AnsiPos 78, GetY()
PrintLn "@X1F│@X0F "
Return
:LABEL005
FOpen 1, PPEPath() + "PUBLIC.DAT", 2, 0
Cls
PrintLn "@X0EBULLETIN.PPE@X0F V2.00 by Mukunda Modell"
PrintLn "@X0FThe Round Table BBS 417-683-4953"
PrintLn "@X0CREGISTERED@X0F to The Round Table BBS!"
Newlines 2
PrintLn "@X1F┌────────────────────────────────────────────────────────────────────────────┐"
Print "@X1F│ #1 = @X1D" + String(ReadLine(PPEPath() + "PUBLIC1", 2))
ClrEol
AnsiPos 50, GetY()
Print String(ReadLine(PPEPath() + "PUBLIC1", 1))
Gosub LABEL004
AnsiPos 1, GetY() - 1
Print "@X1F│ #2 = @X1D" + String(ReadLine(PPEPath() + "PUBLIC2", 2))
ClrEol
AnsiPos 50, GetY()
Print String(ReadLine(PPEPath() + "PUBLIC2", 1))
Gosub LABEL004
AnsiPos 1, GetY() - 1
Print "@X1F│ #3 = @X1D" + String(ReadLine(PPEPath() + "PUBLIC3", 2))
ClrEol
AnsiPos 50, GetY()
Print String(ReadLine(PPEPath() + "PUBLIC3", 1))
Gosub LABEL004
AnsiPos 1, GetY() - 1
Print "@X1F│ #4 = @X1D" + String(ReadLine(PPEPath() + "PUBLIC4", 2))
ClrEol
AnsiPos 50, GetY()
Print String(ReadLine(PPEPath() + "PUBLIC4", 1))
Gosub LABEL004
AnsiPos 1, GetY() - 1
Print "@X1F│ #5 = @X1D" + String(ReadLine(PPEPath() + "PUBLIC5", 2))
ClrEol
AnsiPos 50, GetY()
Print String(ReadLine(PPEPath() + "PUBLIC5", 1))
Gosub LABEL004
AnsiPos 1, GetY() - 1
PrintLn "@X1F└────────────────────────────────────────────────────────────────────────────┘@X0F"
Newline
InputStr "Enter a Bulletin Number or (N) to add your own", STRING001, 15, 1, "12345Nn", 64
If (Upper(STRING001) == "N") Then
Call PPEPath() + "EDIT.PPE"
Cls
DispFile PPEPath() + "TEMP.!!!", 0
Newline
FOpen 5, PPEPath() + "TEMP.!!!", 2, 0
INTEGER001 = ReadLine(PPEPath() + "FILEINFO.DAT", 1)
STRING002 = INTEGER001 + 1
If (INTEGER001 < 5) Then
Delete PPEPath() + "PUBLIC" + STRING002
FOpen 7, PPEPath() + "PUBLIC" + STRING002 + ".", 2, 0
FPutLn 7, "From: ", STRING003
FPutLn 7, "Subject: " + ReadLine(PPEPath() + "TEMP.@@@", 1)
:LABEL006
If (Ferr(5)) Goto LABEL007
FGet 5, STRING005
FPutLn 7, STRING005
Goto LABEL006
:LABEL007
Delete PPEPath() + "FILEINFO.DAT"
FOpen 6, PPEPath() + "FILEINFO.DAT", 2, 0
FPutLn 6, INTEGER001 + 1
FClose 7
Wait
Gosub LABEL003
Goto LABEL005
Else
Delete PPEPath() + "PUBLIC1"
FOpen 7, PPEPath() + "PUBLIC1.", 2, 0
FPutLn 7, "From: ", STRING003
FPutLn 7, "Subject: " + ReadLine(PPEPath() + "TEMP.@@@", 1)
:LABEL008
If (Ferr(5)) Goto LABEL009
FGet 5, STRING005
FPutLn 7, STRING005
Goto LABEL008
:LABEL009
Delete PPEPath() + "FILEINFO.DAT"
FOpen 6, PPEPath() + "FILEINFO.DAT", 2, 0
FPutLn 6, "1"
FClose 6
Wait
Gosub LABEL003
Goto LABEL005
Endif
ElseIf ((STRING001 >= 1) && (STRING001 <= 5)) Then
Cls
DispFile ReadLine(PPEPath() + "PUBLIC.DAT", STRING001), 0
Wait
Goto LABEL005
Endif
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 3 End
; 6 Cls
; 5 ClrEol
; 4 Wait
; 20 Goto
; 9 Let
; 10 Print
; 6 PrintLn
; 10 If
; 4 DispFile
; 7 FOpen
; 9 FClose
; 3 FGet
; 8 FPutLn
; 4 Delete
; 2 InputStr
; 7 Gosub
; 3 Return
; 1 Delay
; 2 Newline
; 1 Newlines
; 1 GetToken
; 1 Call
; 11 AnsiPos
;
;
; ■ Functions used :
;
; 2 -
; 52 +
; 5 -
; 4 ==
; 1 <>
; 1 <
; 2 <=
; 2 >=
; 8 !
; 3 &&
; 4 Upper()
; 3 Ferr()
; 1 Date()
; 1 U_Name()
; 1 Inkey()
; 11 String()
; 29 PPEPath()
; 15 ReadLine()
; 11 GetY()
;
;------------------------------------------------------------------------------
;
; Analysis flags : C
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 5 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------